package com.huawei.rbac.design.strategy;

public class Multiply extends AbstractCalculator implements ICalculator {
  
    @Override  
    public int calculate(String exp) {
        sayHello();
        int arrayInt[] = split(exp,"\\*");  
        return arrayInt[0]*arrayInt[1];  
    }

    @Override
    public void sayHello() {

        System.out.println("hello Multiply");
    }
}